package io.mqttpush.mqttclient.conn;

import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;

public class FailFuture implements Future<Object>{
	
	
	Throwable cause;
	
	
	

	public FailFuture(Throwable cause) {
		super();
		this.cause = cause;
	}

	@Override
	public boolean cancel(boolean mayInterruptIfRunning) {
		
		
		return true;
	}

	@Override
	public boolean isCancelled() {
		
		return true;
	}

	@Override
	public boolean isDone() {
		return true;
	}

	@Override
	public Object get() throws InterruptedException, ExecutionException {
		return null;
	}

	@Override
	public Object get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException {
		return null;
	}

	
}
